package com.siashan.toolkit.oss.qiniu;

import com.siashan.toolkit.oss.qiniu.core.QiniuOssConfig;
import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.regex.Pattern;

/**
 * 七牛云oss配置信息
 * @author sias_han
 * @since v1.0.1
 */
@Data
@ConfigurationProperties(prefix = QiniuOssProperties.PREFIX)
public class QiniuOssProperties {

    private static final Logger log = LoggerFactory.getLogger(QiniuOssProperties.class);

    /**
     * Prefix of {@link QiniuOssProperties}.
     */
    public static final String PREFIX = "siashan.oss.qiniu";

    private static final Pattern PATTERN = Pattern.compile("-(\\w)");

    /**
     * 七牛云oss配置
     */
    private QiniuOssConfig config;

}
